﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TypeResolve;
using XcoAppSpaces.Core;
using XcoAppSpaces.Serialization.Json;
using System.Threading;

namespace testServer.XcoAppSpaces.SL
{
	class Program
	{
		static void Main(string[] args)
		{
			var policyServer = new SilverlightSockets.Server.PolicyServer("PolicyFile.xml");

			using (SpaceServer 
				s1 = new SpaceServer(4505, false), 
				s2 = new SpaceServer(4506, false), 
				s3 = new SpaceServer(4507, false),
				s4 = new SpaceServer(4508, true))
			using (new SocketsServer(4515))
			{
				Console.WriteLine("Running, waiting for messages");
				Console.ReadLine();
			}

			policyServer.Close();
		}
	}
}
